const fs = require('fs');
const ps = require('path');
const file = ps.join(__dirname, '..', 'assets', 'Scripts', 'Msg', 'msgpb.d.ts');
const original = fs.readFileSync(file, { encoding: 'utf8' });
fs.writeFileSync(file, `
import * as $protobuf from 'protobufjs';
declare namespace msg {
    ${original}
}
export default msg;
`);